import { Member } from './member.entity'
import { ManyToOne, Column } from 'typeorm'
import { PrimaryGeneratedColumn } from 'typeorm'
import { Entity } from 'typeorm'

// 会员地址库
@Entity()
export class MemberAddress {
  @PrimaryGeneratedColumn()
  id: number

  @Column()
  offset_type: string

  @Column()
  province: string

  @Column()
  city: string

  @Column()
  district: string

  @Column()
  address: string

  @Column()
  longitude: string

  @Column()
  latitude: string

  @Column()
  tag: string

  @ManyToOne(type => Member, member => member.addresses)
  member: Member
}
